﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Maintenance.aspx.cs" Inherits="WinnerCMS.WebUI.Admin.Common.Maintenance" %>

<%@ Register Src="../UC_AjaxLoading.ascx" TagName="UC_AjaxLoading" TagPrefix="uc1" %>
<!doctype html>
<html>
<head runat="server">
    <title>高级维护</title>
    <meta charset="utf-8">
    <meta content="no-cache" http-equiv="Pragma" />
    <%: Scripts.Render("~/Scripts/AdminBase") %>
    <%: Styles.Render("~/Content/Bootstrap/css") %>
    <script type="text/javascript">

        $(function ()
        {
        });
        function GetTemplate()
        {
            $("#dialog-modal").dialog({
                height: 450,
                width: 500,
                title: "网页模板",
                modal: true
            });
            var urlC = $("#dialog-modal-url");
            urlC.attr("src", "../window/GetTemplate.aspx?Control=txtTemplateFileName");
            urlC.width(460);
            urlC.height(410);
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
        <ProgressTemplate>
            <uc1:UC_AjaxLoading ID="UC_AjaxLoading1" runat="server" />
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table border="0" cellpadding="0" cellspacing="2" width="100%">
                <tr>
                    <td width="100%">
                        <fieldset>
                            <legend>
                                <asp:CheckBox ID="cbk使用ID" runat="server" Text="使用自输入ID方式" OnCheckedChanged="cbk使用ID_CheckedChanged"
                                    AutoPostBack="True" /></legend>
                            <br />
                            ID：<asp:TextBox ID="txtIDs" runat="server"></asp:TextBox>&nbsp;多个ID请用,符号间隔。
                        </fieldset>
                    </td>
                </tr>
            </table>
            <br />
            <fieldset>
                <legend>使用选取方式 </legend>
                <table border="0" cellpadding="0" cellspacing="2" width="100%" runat="server" id="T2">
                    <tr>
                        <td colspan="3">
                            搜索标题：
                            <asp:TextBox ID="txtKeyword" runat="server"></asp:TextBox>
                            栏目：<asp:DropDownList ID="ddlCategorySearch" runat="server">
                            </asp:DropDownList>
                            <asp:Button ID="btnSearch" runat="server" Text="搜索" Cssclass="btn btn-default" OnClick="btnSearch_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 49%; vertical-align: top">
                            <asp:ListBox ID="lblLeftList" runat="server" SelectionMode="Multiple" Rows="10" Width="100%">
                            </asp:ListBox>
                        </td>
                        <td align="center" style="width: 10px" valign="middle">
                            <asp:Button ID="btnSelectOne" runat="server" Text=" &lt; " EnableViewState="False"
                                OnClick="btnSelectOne_Click" Cssclass="btn btn-default" />
                            <br />
                            <asp:Button ID="btnSelectAll" runat="server" Text=">>" EnableViewState="False" OnClick="btnSelectAll_Click"
                                Cssclass="btn btn-default" />
                            <br />
                            <asp:Button ID="btnReMoveOne" runat="server" Text=" < " EnableViewState="False" OnClick="btnReMoveOne_Click"
                                Cssclass="btn btn-default" />
                            <br /><asp:Button ID="btnReMoveAll" runat="server" Text="<<" EnableViewState="False" OnClick="btnReMoveAll_Click"
                                Cssclass="btn btn-default" />
                        </td>
                        <td style="width: 49%; vertical-align: top">
                            <asp:ListBox ID="lblRightList" runat="server" SelectionMode="Multiple" Rows="10"
                                Width="100%"></asp:ListBox>
                        </td>
                    </tr>
                </table>
            </fieldset>
            <div id="tabs" class="easyui-tabs">
 
                <div title="批量设置专题"><table width="100%" id="Tab0" class="TabelStyle" cellpadding="4">
                    <tr>
                        <td>
                            <div class="WorkArea">
                                设置为新专题：<asp:DropDownList ID="ddlSpecial" runat="server">
                                </asp:DropDownList>
                                &nbsp;&nbsp;<asp:Button ID="btnMoveToNewSpecial" runat="server" Text="确定" Cssclass="btn btn-default"
                                    OnClick="btnMoveToNewSpecial_Click" />
                            </div>
                        </td>
                    </tr>
                </table></div>
                <div title="批量设置栏目"><table width="100%" id="Tab1" class="TabelStyle" cellpadding="4">
                    <tr>
                        <td>
                            <div class="WorkArea">
                                移动至新栏目：<asp:DropDownList ID="ddlCategory" runat="server">
                                </asp:DropDownList>
                                &nbsp;&nbsp;<asp:Button ID="btnMoveToNewCategory" runat="server" OnClick="btnMoveToNewClass_Click"
                                    Text="确定" Cssclass="btn btn-default" /></div>
                        </td>
                    </tr>
                </table></div>
                <div title="批量替换"><table width="100%" id="Tab2" class="TabelStyle" cellpadding="4">
                    <tr>
                        <td>
                            <div class="WorkArea" style="width:100%">
                                <table border="0" cellpadding="0" cellspacing="2" width="100%">
                                    <tr>
                                        <td align="left" style="width: 49%" valign="top">
                                            原内容：<asp:CheckBox ID="cbkRegex" runat="server" Text="使用正则表达式" /><br />
                                            <asp:TextBox ID="txtOldString" runat="server" Width="98%" TextMode="MultiLine" Height="40px"></asp:TextBox>
                                        </td>
                                        <td align="center" style="width: 3px" valign="middle">
                                        </td>
                                        <td align="left" valign="bottom">
                                            替换成：<br />
                                            <asp:TextBox ID="txtNewString" runat="server" Width="98%" TextMode="MultiLine" Height="40px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Button ID="btnReplace" runat="server" Text="确定" Cssclass="btn btn-default" OnClick="btnReplace_Click" />
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                    </tr>
                </table></div>
                <div title="批量设置内容属性"><table width="100%" id="Tab3" class="TabelStyle" cellpadding="4">
                    <tr>
                        <td>
                            <table style="width: 786px;">
                                <tr>
                                    <td style="width: 30px; text-align: center">
                                        <asp:CheckBox ID="cbkTemplateFileName" runat="server" Text=" " />
                                    </td>
                                    <td style="width: 80px; text-align: right; background-color: #DDEDFB; font-weight: bold;">
                                        模板：
                                    </td>
                                    <td>
                                        &nbsp;<asp:TextBox ID="txtTemplateFileName" runat="server" Width="250px"></asp:TextBox>
                                        <input id="Button1" type="button" value="网页模板" onclick='GetTemplate();' class="btn btn-default" />
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 30px; text-align: center">
                                        <asp:CheckBox ID="cbkStars" runat="server" Text=" " />
                                    </td>
                                    <td style="width: 80px; text-align: right; background-color: #DDEDFB; font-weight: bold;">
                                        等级：
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlStars" runat="server">
                                            <asp:ListItem Value="1">★</asp:ListItem>
                                            <asp:ListItem Value="2">★★</asp:ListItem>
                                            <asp:ListItem Selected="True" Value="3">★★★</asp:ListItem>
                                            <asp:ListItem Value="4">★★★★</asp:ListItem>
                                            <asp:ListItem Value="5">★★★★★</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 30px; text-align: center">
                                        <asp:CheckBox ID="cbkElite" runat="server" Text=" " />
                                    </td>
                                    <td style="width: 80px; text-align: right; background-color: #DDEDFB; font-weight: bold;">
                                        推荐：
                                    </td>
                                    <td>
                                        <asp:RadioButtonList ID="RBL_Elite" runat="server" RepeatDirection="Horizontal"  CssClass="icheckboxStyle">
                                            <asp:ListItem Value="1">是</asp:ListItem>
                                            <asp:ListItem Value="0" Selected="True">否</asp:ListItem>
                                        </asp:RadioButtonList>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 30px; text-align: center">
                                        <asp:CheckBox ID="cbkOnTop" runat="server" Text=" " />
                                    </td>
                                    <td style="width: 80px; text-align: right; background-color: #DDEDFB; font-weight: bold;">
                                        置顶：
                                    </td>
                                    <td>
                                        <asp:RadioButtonList ID="RBL_OnTop" runat="server" RepeatDirection="Horizontal"   CssClass="icheckboxStyle">
                                            <asp:ListItem Value="1">是</asp:ListItem>
                                            <asp:ListItem Value="0" Selected="True">否</asp:ListItem>
                                        </asp:RadioButtonList>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 30px; text-align: center">
                                        <asp:CheckBox ID="cbkAllowComment" runat="server" Text=" " />
                                    </td>
                                    <td style="width: 80px; text-align: right; background-color: #DDEDFB; font-weight: bold;">
                                        允许评论：
                                    </td>
                                    <td>
                                        <asp:RadioButtonList ID="RBL_AllowComment" runat="server" RepeatDirection="Horizontal"
                                              CssClass="icheckboxStyle">
                                            <asp:ListItem Value="1" Selected="True">是</asp:ListItem>
                                            <asp:ListItem Value="0">否</asp:ListItem>
                                        </asp:RadioButtonList>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 30px; text-align: center">
                                        <asp:CheckBox ID="cbkPass" runat="server" Text=" " />
                                    </td>
                                    <td style="width: 80px; text-align: right; background-color: #DDEDFB; font-weight: bold;">
                                        通过审核：
                                    </td>
                                    <td>
                                        <asp:RadioButtonList ID="RBL_Pass" runat="server" RepeatDirection="Horizontal"   CssClass="icheckboxStyle">
                                            <asp:ListItem Value="1" Selected="True">是</asp:ListItem>
                                            <asp:ListItem Value="0">否</asp:ListItem>
                                        </asp:RadioButtonList>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3">
                                        <div class="WorkArea">
                                            <asp:Button ID="btnUpData" runat="server" Cssclass="btn btn-default" Text="确定" OnClick="btnUpData_Click" />
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table></div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
